

export interface ISysAttendanceShift {
	ID?: string | null;
	Name: string | null;
	DisplayColor: string | null;
	Tag?: '白班' | '中班' | '夜班' | null;
	IsEnabled: boolean;
	Remark: string | null;
	WorkStartDayOffset: '当日' | '下一日' | '上一日';
	WorkStartTime: string | null;
	WorkStartPunchStartDayOffset: '当日' | '下一日' | '上一日';
	WorkStartPunchStartTime: string | null;
	WorkStartPunchEndDayOffset: '当日' | '下一日' | '上一日';
	WorkStartPunchEndTime: string | null;
	WorkEndDayOffset: '当日' | '下一日' | '上一日';
	WorkEndTime: string | null;
	WorkEndPunchStartDayOffset: '当日' | '下一日' | '上一日';
	WorkEndPunchStartTime: string | null;
	WorkEndPunchEndDayOffset: '当日' | '下一日' | '上一日';
	WorkEndPunchEndTime: string | null;
	AttendanceViolationRuleEnabled: boolean;
	LateMinutesThreshold: number;
	EarlyLeaveMinutesThreshold: number;
	AbsenceByLateMinutesThreshold: number;
	AbsenceByEarlyLeaveMinutesThreshold: number;
	AbsenceByTotalDeviationMinutesThreshold: number;
	StandardWorkMinutes: number;
	AttendanceDays: string | null;
	SubsidyRuleEnabled: boolean;
	IsHolidayScheduled: boolean;
	WorkDays: string | null;
	IsDefault: boolean; // 是否为默认班次
	Order: number | null; // 排序
}

export interface ISysAttendanceShiftVm {
	Entity: ISysAttendanceShift;
	ActionName?: string | null;
	IsMyApprove?: boolean | null;
	WorkDays?: string[] | null;
}

export interface ISysAttendanceShiftView extends ISysAttendanceShift {

}

export interface ISysAttendanceShiftQuery {
	Name?: string | null;
	IsEnabled?: boolean | null;
	Order?: number | null;
}